function BoolFilter(cookie, readCookie) {

	this.value = false;

	this.readCookie = function() {
		var valueCookie = $.jqx.cookie.cookie(cookie);
		if(valueCookie != null) {
			this.value = (valueCookie === 'true');
		}
		return this;
	};

	this.set = function(value) {
		if(this.value !== value) {
			this.value = value;
			$.jqx.cookie.cookie(cookie, value);
			$(this).trigger('change');
		}
	};

	if(readCookie) {
		this.readCookie();
	}
};